package com.cn.designpatterns.ex.concrete.mediator.demo2;

/**
 * @author: zhangyi
 * @date: 2019/1/11 09:42
 * @description:
 */
public class China extends Country{

    public China(Mechanism mechanism) {
        super(mechanism);
    }

    public void declare(String message){
        getMechanism().declare(message, this);
    }
    public void getMessage(String message){
        System.out.println("get message--"+message);
    }
}
